var download = {
    pdf: function () {
        // alert("我的id为text，你点击时触发");
        let a = document.createElement('a')
        a.href = 'static/img/pdf/hekr.pdf'
        a.download = 'IoTOS白皮书.pdf'
        document.body.appendChild(a)
        a.click()
    }
}
$('#downloadPdf').click( function () {
    download.pdf();
    return false;
})